package com.zretc.entity;

import java.util.List;

/**
 * 仓库类
 *
 * @author: bLUeSuMMerDreamer
 * @createTime: 2020-07-21 10:59
 */
public class House {
    //仓库ID
    private String houseId;
    //仓库名
    private String houseName;
    //父级仓库
    private House parentHouse;
    //地址
    private Address address;
    //库存限制
    private Double houseLimit;
    //管理员列表
    private List<HouseManager> houseManagerList;

    public House(String houseId, String houseName, House parentHouse, Address address, Double houseLimit, List<HouseManager> houseManagerList) {
        this.houseId = houseId;
        this.houseName = houseName;
        this.parentHouse = parentHouse;
        this.address = address;
        this.houseLimit = houseLimit;
        this.houseManagerList = houseManagerList;
    }

    public List<HouseManager> getHouseManagerList() {
        return houseManagerList;
    }

    public void setHouseManagerList(List<HouseManager> houseManagerList) {
        this.houseManagerList = houseManagerList;
    }

    @Override
    public String toString() {
        return "House{" +
                "houseId='" + houseId + '\'' +
                ", houseName='" + houseName + '\'' +
                ", parentHouse=" + parentHouse +
                ", address=" + address +
                ", houseLimit=" + houseLimit +
                ", houseManagerList=" + houseManagerList +
                '}';
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public House getParentHouse() {
        return parentHouse;
    }

    public void setParentHouse(House parentHouse) {
        this.parentHouse = parentHouse;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public Double getHouseLimit() {
        return houseLimit;
    }

    public void setHouseLimit(Double houseLimit) {
        this.houseLimit = houseLimit;
    }

    public House(String houseId, String houseName, House parentHouse, Address address, Double houseLimit) {
        this.houseId = houseId;
        this.houseName = houseName;
        this.parentHouse = parentHouse;
        this.address = address;
        this.houseLimit = houseLimit;
    }

    public House() {
    }
}
